package com.op.constants;

/**
 * JWT常量类
 * ClassName： JWTConstant
 * Date： 2021/10/13 16:42
 *
 * @author 孤焰
 * @version 1.0
 **/

public interface JWTConstant {
    /**
     * JWT加密解密key
     */
    String JWT_ID = "jwt-id";
    String JWT_USERNAME = "jwt-username";
    String JWT_AVATAR_PATH = "jwt-avatar-path";
    String JWT_ROLE_ID = "jwt-role-id";

    /**
     * filterName
     */
    String FILTER_NAME = "jwtFilter";
    /**
     * OPTIONS请求方法
     */
    String OPTIONS_METHOD = "OPTIONS";
    /**
     * token请求头
     */
    String AUTHORIZATION_REQUEST_HEADER = "Authorization";
    /**
     * 请求内容类型
     */
    String CONTENT_TYPE = "application/json;charset=utf-8";
    /**
     * 跨域响应头
     */
    String CORS_RESPONSE_HEADER = "Access-Control-Allow-Origin";

    /**
     * login登录uri
     */
    String LOGIN_URI = "/user/login";
    /**
     * 获取角色列表
     */
    String GET_ROLES  = "/role/selectAll";
    /**
     * 检查用户是否重复
     */
    String USER_CHECK = "/user/check";
    /**
     * 注册用户
     */
    String USER_REGISTERED = "/user/saveOrUpdate";
    /**
     * 临时用户
     */
    String USER_TEMP_ACCOUNT = "/user/tempAccount";
    /**
     * swagger-sources路径
     */
    String SWAGGER_SOURCES = "/swagger-resources";
    /**
     * swagger-ui路径
     */
    String SWAGGER_UI = "/swagger-ui.html";
    /**
     * webjars路径
     */
    String WEBJARS = "/webjars";
    /**
     * v2路径
     */
    String V2 = "/v2";
}
